<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" href="__STATIC__/logo.ico" />
    <link rel="stylesheet" href="__STATIC__/assets/arr_css/bootstrap.min.css">
    <link rel="stylesheet" href="__STATIC__/assets/index_css/head.css">
    <link rel="stylesheet" href="__STATIC__/assets/index_css/footer.css">
    <link rel="stylesheet" href="__STATIC__/assets/index_css/index.css">
    <link rel="stylesheet" href="__STATIC__/assets/index_brand/css/Cooldog.css">
    <link rel="stylesheet" href="__STATIC__/assets/index_brand/css/iconfont.css">
    <link href="__STATIC__/layui/css/layui.css" rel="stylesheet" type="text/css" />
    <link href="__STATIC__/layer/layui.css" rel="stylesheet" type="text/css" />


    <title>莫愁商城-O2O家居建材免息消费平台</title>


    <style>
    </style>

</head>

<body>



    <!-- 页面头部 -->
    <!-- <div id="head" class="head"></div> -->
    {include file="public/top"}
    <!-- 统计首页浏览量和访客量 -->
    {include file="public/cookie_count"}

    <div class="totop">
        <img id="toTOP" src="__STATIC__/assets/images/toTOP.png" alt="">
        <img id="toTOP2" src="__STATIC__/assets/images/toTOP2.png" alt="" style="display:none;">

    </div>


    <div id="myCarousel" class="carousel slide" style="margin-bottom: 50px;" data-ride="carousel">
        <!-- 轮播（Carousel）指标 -->
        <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>

        </ol>
        <!-- 轮播（Carousel）项目 -->
        <div class="carousel-inner">
            <div class="item active">
                <img src="__STATIC__/assets/images/band_4.png" style="width:100%">

            </div>
            <div class="item">
                <img src="__STATIC__/assets/images/band_3.png" style="width:100%">
            </div>

        </div>
        <!-- 轮播（Carousel）导航 -->
        <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>




    <!-- <div class="dapei">
        <div class="dapei_left">
            <img src="__STATIC__/assets/images/youhui.png" alt="" style="margin-bottom: 50px;">
            <img src="__STATIC__/assets/images/sheji.png" alt="">
            <a href=""><img class="dapei_sq1" src="__STATIC__/assets/images/bank3.jpg" alt=""></a>
        </div>
        <div><img src="__STATIC__/assets/images/yangshi.png" alt="">
            <a href=""><img class="dapei_sq2" src="__STATIC__/assets/images/bank3.jpg" alt=""></a>
        </div>
    </div> -->
    <!--  <div id="z_brand">
       <div style="width:50%;float:left;">
            <div style="width:500px;text-align:center;float:right;margin:45px;" >
                <p>1 5 0 个 品 牌</p>
                <p>强势入驻</p>
                <br>
                <span>一站式家具，品类齐全</span>
                <br>
                <br>
                <a href=""><img src="__STATIC__/assets/images/bank3.jpg" alt=""></a>
                
            </div>
            <div style="clear:both;"></div>
       </div>
       <div style="width:50%;float:left;">
            <div style="width:500px;text-align:center;float:right;margin-top:30px" >
                <span>最高可借额度（元）</span>
                <br>
                <br>
                <p>300000</p>
                
                <br>
                <div style="margin: 0 auto; width: 300px;height: 1px;background: #ccc;"></div>
                
                <br>
                <p>免息贷款</p>

                <span>最长可达36期</span>
                <br>
                <br>
                <a href=""><img src="__STATIC__/assets/images/bank3.jpg " alt=" "></a>
                
            </div>
            <div style="clear:both;"></div>
       </div>
        <div style="clear:both;"></div>
    </div> -->
    <div class="bank">
        <div class="bank_1">
            <a href="{:url('Class/index')}">
                <div class="bank_img">
                    <img src="__STATIC__/assets/images/bank2.png" alt="">
                </div>
            </a>
            <!-- <div class="bank_sq">
                <p>150个品牌</p>
                <p>强势入驻</p>
                <span>一站式家具，品类齐全</span>
                <a href=""><img src="__STATIC__/assets/images/bank3.jpg" alt=""></a>
            </div> -->
        </div>
        <div class="bank_2">
            <a href="{:url('ferr/index')}">
                <div class="bank_img">
                    <img src="__STATIC__/assets/images/bank1.png" alt="">
                </div>
            </a>

            <!-- <div class="bank_sq1" style="right: -20px;">
                <span>最高可借额度（元）</span>
                <p>300000</p>
                <div style="margin: 0 auto; width: 300px;height: 1px;background: #ccc;"></div>
                <p>免息贷款</p>
                <span>最长可达36期</span>
                <a href=""><img src="__STATIC__/assets/images/bank3.jpg" alt=""></a>
            </div> -->
        </div>
    </div>

    <!-- 家具分类 -->
    <div class="page_title">
        <img src="__STATIC__/assets/images/classificationoffurniture.png" alt="">
    </div>

    <div class="classification">
        <div>
            <a href="{:url('Class/class_index',array('type'=>'家具'))}">
                <img class="weixuanzhong jiaju" src="__STATIC__/assets/images/icon_1_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_1_sel.png" alt="">
            </a>
            <span>家具</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'卫浴'))}">
                <img class="weixuanzhong weiyu" src="__STATIC__/assets/images/icon_2_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_2_sel.png" alt="">
            </a>
            <span>卫浴</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'瓷砖'))}">
                <img class="weixuanzhong cizuan" src="__STATIC__/assets/images/icon_3_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_3_sel.png" alt="">
            </a>
            <span>瓷砖</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'地板'))}">
                <img class="weixuanzhong diban" src="__STATIC__/assets/images/icon_4_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_4_sel.png" alt="">
            </a>
            <span>地板</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'门窗'))}">
                <img class="weixuanzhong menc" src="__STATIC__/assets/images/icon_5_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_5_sel.png" alt="">
            </a>
            <span>门窗</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'墙纸'))}">
                <img class="weixuanzhong qiangz" src="__STATIC__/assets/images/icon6_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon6_sel.png" alt="">
            </a>
            <span>墙纸</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'灯饰'))}">
                <img class="weixuanzhong dengs" src="__STATIC__/assets/images/icon_7_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_7_sel.png" alt="">
            </a>
            <span>灯饰</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'窗帘'))}">
                <img class="weixuanzhong chuangl" src="__STATIC__/assets/images/icon_8_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_8_sel.png" alt="">
            </a>
            <span>窗帘</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'衣柜'))}">
                <img class="weixuanzhong yigui" src="__STATIC__/assets/images/icon_10_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_10_sel.png" alt="">
            </a>
            <span>衣柜</span>
        </div>
        <div>
            <a href="{:url('Class/class_index',array('type'=>'橱柜'))}">
                <img class="weixuanzhong cgui" src="__STATIC__/assets/images/icon_9_nol.png" alt="">
                <img class="xuanzhong" src="__STATIC__/assets/images/icon_9_sel.png" alt="">
            </a>
            <span>橱柜</span>
        </div>

    </div>



    <!-- 合作品牌 -->
    <div class="page_title">
        <img src="__STATIC__/assets/images/hotbrand.png" alt="">
    </div>

    <div class="Box">
        <div class="content">
            <div class="Box_con clearfix">

                <!-- 按钮左 -->
                <!-- <span class="btnl btn" id="btnl"> -->
                <img class="btnl btnb" id="btnl" src="__STATIC__/assets/images/brand_left.png" alt="">
                <!-- </span> -->

                <!-- 按钮右 -->
                <!-- <span class="btnr btn" id="btnr"> -->
                <img class="btnr btnb" id="btnr" src="__STATIC__/assets/images/brand_right.png" alt="">
                <!-- </span> -->

                <div class="conbox" id="BoxUl">
                    <ul>
                        {volist name="brand_list" id="v"}

                        <li class="cur">
                            <img src="__ROOT__/{$v.brand_img}" alt="">
                            <!-- <span>{$v.brand_name}</span> -->
                        </li>
                        {/volist}

                    </ul>
                </div>

                <!-- <p class="BoxSwitch" id="BoxSwitch">
    				<span class="cur"></span>
    				<span></span>
    				<span></span>
    				<span></span>
    			</p> -->

            </div>

        </div>
    </div>
    <!-- <div class="page_title "><img src="__STATIC__/assets/images/jiesao2.png " alt=" "></div> -->
    <!-- <div class="Cooldog_container" style="margin-top:-20px;">
        <div class="Cooldog_content">
            <ul>
                {volist name="brand_list" id="v"}
                <li class="p1">
                    <a href="#">
                        <img src="__ROOT__/{$v.brand_img}" alt="">
                    </a>
                </li>
                {/volist}


            </ul>
        </div>
        <a href="javascript:;" class="btn_left">
            <i class="iconfont icon-zuoyoujiantou"></i>
        </a>
        <a href="javascript:;" class="btn_right">
            <i class="iconfont icon-zuoyoujiantou-copy-copy"></i>
        </a>
        <a href="javascript:;" class="btn_close">
            <i class="iconfont icon-icon-test"></i>
        </a>
        <div class="buttons clearfix">
            <a href="javascript:;" class="color"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
        </div>
    </div> -->

    <!-- <div class="brand ">
        <div class="brand_left "><img src="__STATIC__/assets/images/brand_left.png " alt=" "></div>

        <div class="brand_box ">

            <div class="bradn_middle ">
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>2百家姓地板</span></a>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>3百家姓地板</span></a>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>4百家姓地板</span></a>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>5百家姓地板</span></a>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>6百家姓地板</span></a>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>7百家姓地板</span></a>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>8百家姓地板</span></a>
                    <a href=" "><img src="__STATIC__/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>



            </div>

        </div>
        <div class="brand_right "><img src="__STATIC__/assets/images/brand_right.png " alt=" "></div>
    </div> -->


    <!-- 我们的优势 -->
    <div class="page_title">
        <img src="__STATIC__/assets/images/consumerguidelines.png" alt="">
    </div>

    <!-- 我们的优势 -->
    <div class="youshi">
        <div>
            <img src="__STATIC__/assets/images/duidelines-one1.png" alt="">
            <a class="more" href="{:url('about/actor')}">查看更多</a>
        </div>
        <div>
            <img src="__STATIC__/assets/images/guidelines-three2.png" alt="">
            <a class="more" href="{:url('about/actor')}">查看更多</a>

        </div>

        <div>
            <img src="__STATIC__/assets/images/guidelines-two3.png" alt="">
            <a class="more" href="{:url('about/actor')}">查看更多</a>

        </div>

    </div>

    <div class="journalism">
        <div class="sjxiangce">
            <div style="line-height: 50px; border-bottom: 1px solid #f2f2f2; margin-bottom: 45px;">
                <b style="font-size: 30px;">
                    <span style="color: #e83f44;">晒家</span>相册</b>
                <a class="tiaozhuan pull-right" href="{:url('house/index')}">更多</a>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/shaijia_01.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('Home/sjshaijia1')}">
                        <p>素雅的色调让厨房看起来更整洁</p>
                    </a>
                    <span>当初我就是想做一个素色的橱柜，刚好在莫愁商城上找到了类似的商品。是我喜欢的清新白色，重要的是我可以把厨房空间利用好，另一方面保持空间的通透性。</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/shaijia_02.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('Home/sjshaijia2')}">
                        <p>简单大方半开放式厨房</p>
                    </a>
                    <span>家里人对这款橱柜非常喜欢，我也是在莫愁商城上看中了面板的颜色和橱柜整体设计样式，在这样的厨房里才能为家人坐吃一顿丰盛的晚餐。</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/shaijia_03.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('Home/sjshaijia3')}">
                        <p>淡黄主调与原木搭配</p>
                    </a>
                    <span>去年我和家里人正在纠结装修方案，整个武汉的家装市场被我们跑了个遍，最终还是在莫愁商城里找到了中意的建材，实际</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/shaijia_04.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('Home/sjshaijia4')}">
                        <p>充满童趣和想象的儿童房</p>
                    </a>
                    <span>这是我们家孩子的房间，当初从老家搬过来时就答应他一定要给他属于自己的空间。</span>
                </div>
            </div>
        </div>


        <div class="sjxiangce">
            <div style="line-height: 50px; border-bottom: 1px solid #f2f2f2; margin-bottom: 45px;">
                <b style="font-size: 30px;">
                    <span style="color: #e83f44;">新闻</span>动态</b>
                <a class="tiaozhuan pull-right" href="{:url('about/new_list')}">更多</a>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/pagexinwen_01.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('News/tuan')}">
                        <p>莫愁商城携手顶固家居打造团购会</p>
                    </a>
                    <span>7月钜惠，莫愁商城联合顶固全屋定制携手打造江城最火热的建材家居团购会，活动时间定于2017年7月21日~7月22日，活动两天全场特价商品低至6折……</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/pagexinwen_02.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('News/shou')}">
                        <p>2018莫愁商城首次团建圆满收官</p>
                    </a>
                    <span>为了促进公司各部门间的交流，培养员工团队精神，进一步增强团队竞争力，由公司行政部小姐姐们牵头组织、各部门大力配合，共同完成了莫愁商城首次……</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/pagexinwen_03.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('News/jie')}">
                        <p>2018莫愁商城战略合作品牌揭晓</p>
                    </a>
                    <span>莫愁商城为搭建O2O一站式家具建材免息购物平台，2018年与来自行业类不同品类的120多个知名家居品牌签订了战略合作、莫愁商城创始人刘博表示……</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="__STATIC__/assets/images/pagexinwen_04.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="{:url('News/ze')}">
                        <p>浙商银行携手莫愁商城</p>
                    </a>
                    <span>首先热烈贺莫愁商城与浙商银行正式成为战略合作伙伴，双方共同大招家居建材购买免息服务。据悉，此次莫愁练手浙商银行，将使莫愁商城的客户获得……</span>
                </div>
            </div>


        </div>
        <div class="dongtai"></div>

    </div>


    <div class="mochou_tel">
        <!-- <div class="mochou_tel_left">
            <div style="line-height: 42px;">
                <img style="margin-bottom: 16px;" src="__STATIC__/assets/images/tel2.png" alt="">
                <b style="margin-left: 20px; font-size: 32px; color: #fefefe;">400-900-2355</b>

            </div>
            <div>
                <img src="__STATIC__/assets/images/dizhi2.png" alt="">
                <span style="margin-left: 20px; font-size: 22px; color: #fefefe;">武汉市江汉区建设大道737号
                    <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;广发银行大厦36F
                </span>
            </div>
        </div> -->
        <div class="mochou_tel_left">
            <h3 style="text-align: center; font-size: 24px;color: #fff;">更多精彩体验请下载“莫愁商城APP”
            </h3>
            <!-- <h1 style="font-size: 32px;text-align: center;margin-top: 100px;color: #fff;">敬请期待!</h1> -->
            <div style="text-align: center;margin:20px 0 10px 0; ">
                <img style="width: 120px; margin-right: 100px;" src="__STATIC__/assets/images/Androidewm.png" alt="">
                <img style="width: 120px;" src="__STATIC__/assets/images/Androidewm.png" alt="">
            </div>
            <div style="display: flex;">
                <span style="color: #fff; display: block; width: 120px; margin-left: 118px;;">Android平台下载</span>
                <span style="color: #fff; display: block;width: 120px; margin-left: 118px;">IOS平台下载</span>
            </div>
        </div>

        <div class="mochou_tel_right">
            <h3 style="font-size:24px;">更多优惠活动请添加莫愁官方微信</h3>
            <div style="margin-bottom:10px;">
                <img style="margin-right: 120px;" src="__STATIC__/assets/images/erweima.png" alt="">
                <img src="__STATIC__/assets/images/wxerweim.png" alt="">
            </div>
            <p>
                <span style="margin-right:170px;">微信公众号</span>
                <span>微信小程序</span>
            </p>
        </div>

    </div>





    <!-- 底部 -->
    {include file="public/footer"}
</body>

<script src="__STATIC__/assets/arr_css/jquery-3.3.1.js"></script>
<script type="text/javascript" src="__STATIC__/assets/arr_css/jquery.SuperSlide2.js"></script>
<script src="__STATIC__/assets/arr_css/bootstrap.min.js"></script>
<script src="__STATIC__/assets/arr_css/head.js"></script>
<script src="__STATIC__/assets/index_css/index.js"></script>
<script src="__STATIC__/layer/layer.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
<script type="text/javascript" src="__STATIC__/assets/index_brand/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/assets/index_brand/js/Cooldog.js"></script>
<!-- <script type="text/javascript" src="__STATIC__/assets/index_brand/js/jquery.easing.1.3.js"></script> -->
<script type="text/javascript" src="__STATIC__/assets/index_brand/js/Lunbo.js"></script>


<script>
    $('#exampleModal').on('show.bs.modal', function (event) {
        var button = $(event.relatedTarget) // Button that triggered the modal
        var recipient = button.data('whatever') // Extract info from data-* attributes
        // If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
        // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
        var modal = $(this)
        modal.find('.modal-title').text('New message to ' + recipient)
        modal.find('.modal-body input').val(recipient)
    })
</script>
<script>
    function delseeling() {
        $.ajax({
            type: "POST",
            url: "{:url('Login/delseeling')}",
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                if (msg == 1) {
                    layer.msg('注销成功，欢迎下次来玩哟', {
                        icon: 1
                    });
                    history.go(0);
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });
    }

    // 清楚selling
    // function del_login()
    // {
    //     console.log('111');
    //     // $.ajax({
    //     //      type: "POST",
    //     //      url:"{:url('Login/delseeling')}",
    //     //      data:formData,// 要提交的表单 
    //     //      beforeSend:function(){
    //     //            layer.load(0, {shade: false});
    //     //         },
    //     //      success: function(msg) {
    //     //         if (msg == 1) {
    //     //             layer.msg('注销成功，欢迎下次来玩哟', {icon: 1});
    //     //             history.go(0); 
    //     //         }
    //     //         // if (msg == 1111) {
    //     //         //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
    //     //         //     history.go(0); 
    //     //         // }else{
    //     //         //     layer.msg('申请失败,请重新再试!');
    //     //         // }
    //     //      },
    //     //      complete: function() {
    //     //              layer.closeAll('loading');
    //     //         }
    //     //  });

    // }

    function register_to() {
        layer.open({
            type: 1,
            title: '莫愁商城',
            skin: 'demo-class', //加上边框
            area: ['432px', '515px'], //宽高
            content: $('#register_form')
        });
    }


    function login() {
        //页面层
        layer.open({
            type: 1,
            title: '莫愁商城',
            skin: 'demo-class', //加上边框
            area: ['432px', '515px'], //宽高
            content: $('#login_form')
        });
    }


    function register() {
        $('#login_go').hide();
        $('#register_go').show();
        // $
    }

    function login_to() {
        $('#login_go').show();
        $('#register_go').hide();
    }


    function login_res() {
        $('#login_go_to').show();
        $('#register_go_to').hide();
    }

    function register_res() {
        $('#login_go_to').hide();
        $('#register_go_to').show();
        // $
    }

    // 注册一
    function go_register_to() {
        var formData = $("#formpost_register").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "{:url('Login/register')}",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('恭喜您，注册成功！', {
                        icon: 1
                    });
                    $('#login_go').show();
                    $('#register_go').hide();
                } else if (msg == 2) {
                    layer.msg('注册失败，请重试');
                } else if (msg == 3) {
                    layer.msg('验证码错误，请重试！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });


    }

    // 注册二
    function go_register() {
        var formData = $("#formpost_register_to").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "{:url('Login/register')}",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('恭喜您，注册成功！', {
                        icon: 1
                    });
                    $('#login_go_to').show();
                    $('#register_go_to').hide();
                } else if (msg == 2) {
                    layer.msg('注册失败，请重试');
                } else if (msg == 3) {
                    layer.msg('验证码错误，请重试！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });


    }

    function del() {
        console.log('11');
    }
    // 验证码一
    function code(t) {
        $('#go_code').disabled = true;

        var phone = $('#code_phone').val();
        console.log(phone);
        if (phone == '' || phone.length < 11 || phone.length > 11 || !(
                /^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/.test(phone))) {
            layer.msg('请输入正确的手机号码');
        } else {
            for (i = 1; i <= t; i++) {
                window.setTimeout("update_p(" + i + "," + t + ")", i * 1000);
            }

            $.ajax({
                type: "POST",
                url: "{:url('Login/verification')}",
                data: {
                    'phone': phone
                }, // 要提交的表单 
                beforeSend: function () {
                    layer.load(0, {
                        shade: false
                    });
                },
                success: function (msg) {
                    console.log(msg);
                    if (msg == 1) {
                        layer.msg('短信已发送', {
                            icon: 1
                        });
                    } else if (msg == 2) {
                        layer.msg('注册失败，请重试！');
                    } else if (msg == 4) {
                        layer.msg('请不要重复发送短信！');
                    } else if (msg == 5) {
                        layer.msg('手机号码已存在！');
                    }
                },
                complete: function () {
                    layer.closeAll('loading');
                }
            });
        }

    }

    function update_p(num, t) {
        if (num == t) {
            $('#go_code').html('获取短信验证码');
            $('#go_code').css("color", "#007bbb");
            $('#go_code').disabled = false;
            $('#go_code').css("pointer-events", "auto");
        } else {
            printnr = t - num;
            // document.myform.phone.value = " (" + printnr +")秒后重新发送";
            $('#go_code').html(" " + printnr + "秒后重新发送");
            $('#go_code').css("color", "#ccc");
            $('#go_code').css("pointer-events", "none");
        }
    }


    // 验证码二
    function codeto(t) {
        $('#go_code_to').disabled = true;

        var phone = $('#code_phone_to').val();
        console.log(phone);
        if (phone == '' || phone.length < 11 || phone.length > 11 || !(
                /^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/.test(phone))) {
            layer.msg('请输入正确的手机号码');
        } else {
            for (i = 1; i <= t; i++) {
                window.setTimeout("update_po(" + i + "," + t + ")", i * 1000);
            }

            $.ajax({
                type: "POST",
                url: "{:url('Login/verification')}",
                data: {
                    'phone': phone
                }, // 要提交的表单 
                beforeSend: function () {
                    layer.load(0, {
                        shade: false
                    });
                },
                success: function (msg) {
                    console.log(msg);
                    if (msg == 1) {
                        layer.msg('短信已发送', {
                            icon: 1
                        });
                    } else if (msg == 2) {
                        layer.msg('注册失败，请重试！');
                    } else if (msg == 4) {
                        layer.msg('请不要重复发送短信！');
                    } else if (msg == 5) {
                        layer.msg('手机号码已存在！');
                    }
                },
                complete: function () {
                    layer.closeAll('loading');
                }
            });
        }

    }

    function update_po(num, t) {
        if (num == t) {
            $('#go_code_to').html('获取短信验证码');
            $('#go_code_to').css("color", "#007bbb");
            $('#go_code_to').disabled = false;
            $('#go_code_to').css("pointer-events", "auto");
        } else {
            printnr = t - num;
            // document.myform.phone.value = " (" + printnr +")秒后重新发送";
            $('#go_code_to').html(" " + printnr + "秒后重新发送");
            $('#go_code_to').css("color", "#ccc");
            $('#go_code_to').css("pointer-events", "none");
        }
    }


    // 登入一
    function go_login() {
        var formData = $("#login_formpost").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "{:url('Login/login_add')}",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('登入成功！'， {
                        icon: 1
                    });
                    history.go(0);
                } else {
                    layer.msg('登入失败，请重新登入！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });
    }
</script>



</html>
